﻿<%@ Page Title="Resoluciones" MaintainScrollPositionOnPostback="true" Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="aprobaciones.aspx.cs" Inherits="ICE.Vacations.WebASP.aprobaciones" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">

    <div id="col-top"></div>
    <div id="col" class="box">
    
        <form name="solImpropia" id="solImpropia">
            
            <p style="margin-left:20%">
            <asp:label runat="server">Filtrado por: </asp:label>
            <asp:DropDownList ID="listaCampos" runat="server">
                <%--<asp:ListItem Selected="True" Value="USUARIO">Solictante</asp:ListItem>--%>
                <asp:ListItem Value="Nombre">Solicitante</asp:ListItem>
                <asp:ListItem Value="IDSOLICITUD">Solicitud</asp:ListItem>
                <asp:ListItem Value="FECHA_INICIO">Inicio</asp:ListItem>
                <asp:ListItem Value="FECHA_FIN">Fin</asp:ListItem>
            </asp:DropDownList>
                
            <asp:TextBox ID="filtro" runat="server" OnTextChanged="filtro_TextChanged"></asp:TextBox>
                </p>

            <asp:Panel ScrollBars="Auto" runat="server">
            <asp:GridView   ID="listaSolicitudesXAprobar" RowStyle-HorizontalAlign="Center" runat="server" AutoGenerateColumns="False"  OnRowCommand="listaSol_RowCommand" BorderColor="#E1BD14" BorderStyle="Solid" >
      
                    <AlternatingRowStyle BorderStyle="Inset" HorizontalAlign="Center" VerticalAlign="Middle" />
                     <Columns>
                        <asp:ButtonField ButtonType="Link"  CommandName="aprobarSolicitud" ShowHeader="false" text="Aprobar" ItemStyle-Width="100px" />
                        <asp:ButtonField ButtonType="Link"  CommandName="rechazarSolicitud" ShowHeader="false" text="Rechazar" ItemStyle-Width="100px" />
                        <asp:ButtonField ButtonType="Link" CommandName="verSolicitud" ShowHeader="false" text="Ver" ItemStyle-Width="100px" /> 
                        <%--            <asp:BoundField HeaderText="Usuario" DataField="username"  />--%>
                        <asp:BoundField DataField="username" HeaderText="Solicitante" ItemStyle-Width="250px" >
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="requestID"  HeaderStyle-Width="250px" HeaderText="Solicitud" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Center" Width="250px" />
                        </asp:BoundField>
                        <%-- <asp:BoundField HeaderText="ID Objeto" DataField="objectID" />--%>
                        <asp:BoundField DataField="diasDisponibles" HeaderText="Disponibles" ItemStyle-Width="100px">
                             <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="diasSolicitados" HeaderText="Solicitados" ItemStyle-Width="100px">
                             <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="fechaInicio" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-HorizontalAlign="Center" HeaderText="Inicio" ItemStyle-Width="100px">
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="fechaFin" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-HorizontalAlign="Center" HeaderText="Fin" HtmlEncode="false" ItemStyle-Width="100px">
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle Width="100px" />
                        </asp:BoundField>
                    </Columns>




                    <HeaderStyle HorizontalAlign="Center" Wrap="False" VerticalAlign="Middle" BackColor="#155790" BorderColor="#155790" Font-Bold="True" ForeColor="White" Width="300px" />




                    <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />




            </asp:GridView>
                </asp:Panel>
        </form>


    </div> <!-- /col -->
    <div id="col-bottom"></div>
    
    </asp:Content>



<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    



</asp:Content>
